import {get, post, put, del, exportRequest} from '@/utils/request';
import {BaseListResponse, BaseResponse} from "@/api/system/index";

export interface SysPost extends BaseResponse {
    flag: boolean
    postCode: string
    postId: number
    postName: string
    postSort: number
    remark: string
    status: string
}

interface PostListParams {
    deptId: number;
    pageSize: number;
    pageNum: number;
}

// 获取岗位列表
export const getPostListApi = (data: PostListParams) => {
    return get<BaseListResponse<SysPost>>('/system/post/list', data);
};